nuclear@2: PREFIX = /usr/local nuclear@0: src = $(wildcard *.c) nuclear@0: obj = $(src:.c=.o) nuclear@0: bin = lspart nuclear@0: nuclear@0: CC = gcc nuclear@0: CFLAGS = -pedantic -Wall -g nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(bin) nuclear@2: nuclear@2: .PHONY: install nuclear@2: install: nuclear@2: mkdir -p $(DESTDIR)$(PREFIX)/bin nuclear@2: cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin) nuclear@2: nuclear@2: .PHONY: uninstall nuclear@2: uninstall: nuclear@2: rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)