1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-10-31 15:45:03 -04:00

Clean up makefile for script generation

We no longer have any python scripts in our scripts/ directory so
we can simplify the makefile a bit.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2011-06-15 13:52:56 +10:00 committed by Dan McGee
parent e27e658033
commit 06cb713f39

View File

@ -29,7 +29,7 @@ LIBRARY = \
library/parse_options.sh library/parse_options.sh
# Files that should be removed, but which Automake does not know. # Files that should be removed, but which Automake does not know.
MOSTLYCLEANFILES = $(bin_SCRIPTS) *.tmp MOSTLYCLEANFILES = $(bin_SCRIPTS)
if USE_GIT_VERSION if USE_GIT_VERSION
GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 --dirty | sed s/^v//') GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 --dirty | sed s/^v//')
@ -62,13 +62,10 @@ edit = sed \
# third 'test' line- make sure one of the two checks succeeded # third 'test' line- make sure one of the two checks succeeded
$(OURSCRIPTS): Makefile $(OURSCRIPTS): Makefile
@echo ' ' GEN $@; @echo ' ' GEN $@;
@rm -f $@ $@.tmp @rm -f $@
@test -f $(srcdir)/$@.sh.in && m4 -P -I $(srcdir) $(srcdir)/$@.sh.in | $(edit) >$@.tmp || true @test -f $(srcdir)/$@.sh.in && m4 -P -I $(srcdir) $(srcdir)/$@.sh.in | $(edit) >$@
@test -f $(srcdir)/$@.py.in && m4 -P -I $(srcdir) $(srcdir)/$@.py.in | $(edit) >$@.tmp || true @chmod +x $@
@test -f $@.tmp || false @chmod a-w $@
@chmod +x $@.tmp
@chmod a-w $@.tmp
@mv $@.tmp $@
makepkg: \ makepkg: \
$(srcdir)/makepkg.sh.in \ $(srcdir)/makepkg.sh.in \