LIBS = `pkg-config --libs gtk+-3.0` CFLAGS = -std=c99 `pkg-config --cflags gtk+-3.0` all: tek4010 tek4010: src/help.txt src/main.c src/main.h src/tube.c src/tube.h src/tek4010.c src/ards.c sed 's/\"/\\\"/g; s/$$/\\n"/; s/^/"/; 1s/^/const char *helpStr =\n/; $$a;' src/help.txt > src/help.h $(CC) -o $@ src/main.c src/tube.c src/tek4010.c src/ards.c $(LIBS) $(CFLAGS) man: tek4010 help2man --output=$?.1 --name="Tektronix 4010 and 4014 storage tube terminal emulator" --no-info $? install: tek4010 ./install clean: -rm -f tek4010