vc-p4/Makefile

24 lines
520 B
Makefile
Raw Normal View History

NAME := vc-p4
2020-05-13 20:29:20 +02:00
VERSION := 0.2.0
DESCRIPTION := "Perforce integration for VC"
2018-02-06 20:29:03 +01:00
FULLNAME := "$(NAME)-$(VERSION)"
2018-02-06 20:29:03 +01:00
.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 $^ $@
2018-02-06 20:29:03 +01:00
$(NAME)-pkg.el:
echo "(define-package \"$(NAME)\" \"$(VERSION)\" \"$(DESCRIPTION)\")" > $@
clean:
rm -rf $(NAME)-pkg.el $(NAME)-$(VERSION).tar $(FULLNAME)/