include config.mk all: src/main.c $(CC) $(CFLAGS) $(LDFLAGS) src/main.c -o src/pm install: src/pm man/pm.1 install src/pm $(PREFIX)/bin install -d $(PM_ENTRIES_DIR) touch $(PM_ENTRIES_DIR)/$(PM_ENTRIES_FILE) install -g 0 -o 0 -m man/pm.1 /usr/local/man/man1/pm.1 gzip /usr/local/man/man1/pm.1