nuclear@1: PREFIX = /usr/local nuclear@1: VERSION = 0.4 nuclear@0: nuclear@1: obj = dterm.o nuclear@1: bin = dterm nuclear@0: nuclear@1: CFLAGS = -pedantic -Wall -Werror -Os -DVERSION='"$(VERSION)"' nuclear@0: nuclear@1: $(bin): $(obj) nuclear@1: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@1: nuclear@1: .PHONY: install nuclear@1: install: $(bin) nuclear@1: mkdir -p $(DESTDIR)$(PREFIX)/bin nuclear@1: cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin) nuclear@1: nuclear@1: .PHONY: uninstall nuclear@1: uninstall: nuclear@1: rm -f $(DESTDIR)$(PREFIX)/bin/$(bin) nuclear@1: nuclear@1: .PHONY: clean nuclear@0: clean: nuclear@1: rm -f $(bin) $(obj) nuclear@0: nuclear@1: .PHONY: package nuclear@1: package: dterm.c LICENCE.txt README.txt Makefile nuclear@1: mkdir -p dterm-$(VERSION) nuclear@1: cp dterm.c LICENCE.txt README.txt Makefile dterm-$(VERSION) nuclear@1: tar czvf dterm-$(VERSION).tar.gz dterm-$(VERSION) nuclear@1: rm -rf dterm-$(VERSION)