index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-05-30 11:46:37 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-05-30 11:46:37 -0400 |
commit | a6129bb789832ca1fa8966d511d7a0b96d2d9e53 (patch) | |
tree | 87a031da793ad8e3045f71c0ebc0ebaea86be6e3 /etc/Makefile.am | |
parent | b6387b954f7c35d0d51978aac24ca6bd6a5308fc (diff) |
-rw-r--r-- | etc/Makefile.am | 23 |
diff --git a/etc/Makefile.am b/etc/Makefile.am index 0bded95e..2bd7cc12 100644 --- a/etc/Makefile.am +++ b/etc/Makefile.am @@ -1,4 +1,25 @@ SUBDIRS = pacman.d abs -EXTRA_DIST = makepkg.conf pacman.conf dist_sysconf_DATA = makepkg.conf pacman.conf +EXTRA_DIST = makepkg.conf.in pacman.conf.in + +# Files that should be removed, but which Automake does not know. +MOSTLYCLEANFILES = $(dist_sysconf_DATA) + +#### Taken from the autoconf scripts Makefile.am #### +edit = sed \ + -e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \ + -e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \ + -e 's|@PKGEXT[@]|$(PKGEXT)|g' \ + -e 's|@CARCH[@]|$(CARCH)|g' \ + -e 's|@CHOST[@]|$(CHOST)|g' \ + -e 's|@ARCHSWITCH[@]|$(ARCHSWITCH)|g' \ + -e 's|@CARCHFLAGS[@]|$(CARCHFLAGS)|g' + +$(dist_sysconf_DATA): Makefile + rm -f $@ $@.tmp + $(edit) `test -f ./$@.in || echo $(srcdir)/`$@.in >$@.tmp + mv $@.tmp $@ + +makepkg.conf: $(srcdir)/makepkg.conf.in +pacman.conf: $(srcdir)/pacman.conf.in |