diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-11-10 23:22:45 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-11-10 23:22:45 +0100 |
commit | 5d796b56a321b04cdd85f5a4e4f351517cfaca06 (patch) | |
tree | 10af8ecc02100804ee67425eb37c37b7b122f6f7 /Makefile | |
parent | dd4a94412ce6bb7a76fed471568099a8df2d211c (diff) | |
download | termgl-5d796b56a321b04cdd85f5a4e4f351517cfaca06.tar.gz |
Added header install to makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -24,14 +24,16 @@ build: dir genversion $(OBJ) @$(CC) $(CPPFLAGS) -o $(BUILDDIR)/lib/$(OUTPUT) $(OBJ) $(LDFLAGS) -Wl,-soname=lib$(SONAME).so.$(VERSION) @ln -sf $(OUTPUT) $(BUILDDIR)/lib/lib$(SONAME).so.$(VERSION) @ln -sf $(OUTPUT) $(BUILDDIR)/lib/lib$(SONAME).so - @cp $(SOURCEDIR)/c*.h $(BUILDDIR)/inc - @cp $(SOURCEDIR)/version.h $(BUILDDIR)/inc + @cp $(SOURCEDIR)/c*.h $(BUILDDIR)/inc/termgl + @cp $(SOURCEDIR)/version.h $(BUILDDIR)/inc/termgl + @cp $(SOURCEDIR)/termgl.h $(BUILDDIR)/inc dir: @mkdir -p $(OBJECTDIR) @mkdir -p $(BUILDDIR) @mkdir -p $(BUILDDIR)/lib @mkdir -p $(BUILDDIR)/inc + @mkdir -p $(BUILDDIR)/inc/termgl debug: CFLAGS += -g -D _DEBUG debug: build; @@ -102,4 +104,10 @@ uninstall: .PHONY: install-headers install-headers: @echo Installing headers... + @install -d $(BUILDDIR)/inc/termgl $(PREFIX)/usr/include/termgl + @install -m 644 -D $(BUILDDIR)/inc/termgl/* $(PREFIX)/usr/include/termgl + @install -m 644 -D $(BUILDDIR)/inc/termgl.h $(PREFIX)/usr/include/termgl.h + @echo Finished +todo: + @grep -n TODO src/** |