diff options
-rw-r--r-- | Makefile | 25 |
1 files changed, 6 insertions, 19 deletions
@@ -5,25 +5,17 @@ EDIT = { m4 -P | sed -e 's|@bash@|$(bash)|g' -e 's|@VERSION@|$(VERSION)|'; } PACKAGE = emacsutils VERSION = 0.9 -topoutdir=. -topsrcdir=. +topoutdir ?= . +topsrcdir ?= . include $(topoutdir)/build-aux/Makefile.head.mk - -ifeq ($(wildcard .git/),) -include .srcfiles.mk -else -.srcfiles.mk: FORCE - @git ls-files | sed 's|^|std.src_files += |' | $(WRITE_IFCHANGED) $@ --include .srcfiles.mk -endif - programs = ediff emacsmail emacsterm emacsterm-rxvt emacsterm-xterm desktops = emacsmail emacsterm -std.out_files = $(programs) $(addsuffix .desktop,$(desktops)) -std.sys_files = $(addprefix $(bindir)/,$(programs)) $(foreach d,$(desktops),$(datarootdir)/applications/$d.desktop) -std.clean_files += *.sh + +files.out.all = $(programs) $(addsuffix .desktop,$(desktops)) +files.sys.all = $(addprefix $(bindir)/,$(programs)) $(foreach d,$(desktops),$(datarootdir)/applications/$d.desktop) +files.out.int += *.sh %.sh: %.sh.in common.sh.in .var.bash .var.VERSION $(EDIT) < $< > $@ @@ -35,11 +27,6 @@ $(DESTDIR)$(datarootdir)/applications/%: % $(NORMAL_INSTALL) $(INSTALL_DATA) $< $@ -.var.%: FORCE - @printf '%s' '$($*)' | sed 's|^|#|' | $(WRITE_IFCHANGED) '$@' --include $(wildcard .var.*) - -.PHONY: PHONY FORCE .DELETE_ON_ERROR: .SECONDARY: include $(topoutdir)/build-aux/Makefile.tail.mk |