vc-p4/Makefile
Tom Willemse 58a8b9efc6 Fix Makefile to work on phone
This should work more generally.
2019-03-06 00:11:08 -08:00

23 lines
520 B
Makefile

NAME := vc-p4
VERSION := 0.1.0
DESCRIPTION := "Perforce integration for VC"
FULLNAME := "$(NAME)-$(VERSION)"
.PHONY: $(NAME)-pkg.el
.SUFFIXES:
$(FULLNAME).tar: $(FULLNAME)/
tar cf $@ $^
$(FULLNAME)/: $(FULLNAME)/$(NAME)-pkg.el $(FULLNAME)/$(NAME).el $(FULLNAME)/p4-lowlevel.el
$(FULLNAME)/%: ./%
test -d $$(dirname $@) || mkdir $$(dirname $@)
cp $^ $@
$(NAME)-pkg.el:
echo "(define-package \"$(NAME)\" \"$(VERSION)\" \"$(DESCRIPTION)\")" > $@
clean:
rm -rf $(NAME)-pkg.el $(NAME)-$(VERSION).tar $(FULLNAME)/