Let "make dist" work properly
This commit is contained in:
parent
1da5b1d8b9
commit
35d6838025
11
Makefile
11
Makefile
|
@ -1,6 +1,6 @@
|
||||||
PACKAGE = GToolkit
|
PACKAGE = GToolkit
|
||||||
VERSION = 0.0.0
|
VERSION = 0.0.0
|
||||||
SUBDIRS = src tools
|
SUBDIRS = include src tools
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
LN = ln -f
|
LN = ln -f
|
||||||
TAR = tar -czvf
|
TAR = tar -czvf
|
||||||
|
@ -21,10 +21,19 @@ dist:
|
||||||
$(RM) -r -- $(PACKAGE)-$(VERSION)
|
$(RM) -r -- $(PACKAGE)-$(VERSION)
|
||||||
$(LN) -s -- . $(PACKAGE)-$(VERSION)
|
$(LN) -s -- . $(PACKAGE)-$(VERSION)
|
||||||
@$(TAR) $(PACKAGE)-$(VERSION).tar.gz -- \
|
@$(TAR) $(PACKAGE)-$(VERSION).tar.gz -- \
|
||||||
|
$(PACKAGE)-$(VERSION)/include/GToolkit.h \
|
||||||
|
$(PACKAGE)-$(VERSION)/include/Makefile \
|
||||||
|
$(PACKAGE)-$(VERSION)/include/project.conf \
|
||||||
|
$(PACKAGE)-$(VERSION)/include/GToolkit/GWidget.h \
|
||||||
|
$(PACKAGE)-$(VERSION)/include/GToolkit/GWindow.h \
|
||||||
|
$(PACKAGE)-$(VERSION)/include/GToolkit/Makefile \
|
||||||
|
$(PACKAGE)-$(VERSION)/include/GToolkit/project.conf \
|
||||||
$(PACKAGE)-$(VERSION)/src/common.c \
|
$(PACKAGE)-$(VERSION)/src/common.c \
|
||||||
$(PACKAGE)-$(VERSION)/src/gwindow.c \
|
$(PACKAGE)-$(VERSION)/src/gwindow.c \
|
||||||
$(PACKAGE)-$(VERSION)/src/gtoolkit.c \
|
$(PACKAGE)-$(VERSION)/src/gtoolkit.c \
|
||||||
$(PACKAGE)-$(VERSION)/src/Makefile \
|
$(PACKAGE)-$(VERSION)/src/Makefile \
|
||||||
|
$(PACKAGE)-$(VERSION)/src/common.h \
|
||||||
|
$(PACKAGE)-$(VERSION)/src/gwidget.h \
|
||||||
$(PACKAGE)-$(VERSION)/src/project.conf \
|
$(PACKAGE)-$(VERSION)/src/project.conf \
|
||||||
$(PACKAGE)-$(VERSION)/tools/test.c \
|
$(PACKAGE)-$(VERSION)/tools/test.c \
|
||||||
$(PACKAGE)-$(VERSION)/tools/Makefile \
|
$(PACKAGE)-$(VERSION)/tools/Makefile \
|
||||||
|
|
26
include/GToolkit/Makefile
Normal file
26
include/GToolkit/Makefile
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
PREFIX = /usr/local
|
||||||
|
DESTDIR =
|
||||||
|
RM = rm -f
|
||||||
|
LN = ln -f
|
||||||
|
MKDIR = mkdir -p
|
||||||
|
INSTALL = install
|
||||||
|
INCLUDEDIR= $(PREFIX)/include
|
||||||
|
|
||||||
|
|
||||||
|
all:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
|
||||||
|
distclean: clean
|
||||||
|
|
||||||
|
install: all
|
||||||
|
$(MKDIR) $(DESTDIR)$(INCLUDEDIR)
|
||||||
|
$(INSTALL) -m 0644 -- GWidget.h $(DESTDIR)$(INCLUDEDIR)/GWidget.h
|
||||||
|
$(MKDIR) $(DESTDIR)$(INCLUDEDIR)
|
||||||
|
$(INSTALL) -m 0644 -- GWindow.h $(DESTDIR)$(INCLUDEDIR)/GWindow.h
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/GWidget.h
|
||||||
|
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/GWindow.h
|
||||||
|
|
||||||
|
.PHONY: all clean distclean install uninstall
|
2
include/GToolkit/project.conf
Normal file
2
include/GToolkit/project.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
includes=GWidget.h,GWindow.h
|
||||||
|
dist=Makefile
|
31
include/Makefile
Normal file
31
include/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
SUBDIRS = GToolkit
|
||||||
|
PREFIX = /usr/local
|
||||||
|
DESTDIR =
|
||||||
|
RM = rm -f
|
||||||
|
LN = ln -f
|
||||||
|
MKDIR = mkdir -p
|
||||||
|
INSTALL = install
|
||||||
|
INCLUDEDIR= $(PREFIX)/include
|
||||||
|
|
||||||
|
|
||||||
|
all: subdirs
|
||||||
|
|
||||||
|
subdirs:
|
||||||
|
@for i in $(SUBDIRS); do (cd $$i && $(MAKE)) || exit; done
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@for i in $(SUBDIRS); do (cd $$i && $(MAKE) clean) || exit; done
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
@for i in $(SUBDIRS); do (cd $$i && $(MAKE) distclean) || exit; done
|
||||||
|
|
||||||
|
install: all
|
||||||
|
@for i in $(SUBDIRS); do (cd $$i && $(MAKE) install) || exit; done
|
||||||
|
$(MKDIR) $(DESTDIR)$(INCLUDEDIR)
|
||||||
|
$(INSTALL) -m 0644 -- GToolkit.h $(DESTDIR)$(INCLUDEDIR)/GToolkit.h
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
@for i in $(SUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit; done
|
||||||
|
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/GToolkit.h
|
||||||
|
|
||||||
|
.PHONY: all subdirs clean distclean install uninstall
|
3
include/project.conf
Normal file
3
include/project.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
subdirs=GToolkit
|
||||||
|
includes=GToolkit.h
|
||||||
|
dist=Makefile
|
|
@ -1,5 +1,5 @@
|
||||||
package=GToolkit
|
package=GToolkit
|
||||||
version=0.0.0
|
version=0.0.0
|
||||||
|
|
||||||
subdirs=src,tools
|
subdirs=include,src,tools
|
||||||
dist=Makefile
|
dist=Makefile
|
||||||
|
|
|
@ -2,7 +2,7 @@ targets=libGToolkit
|
||||||
cppflags_force=-I ../include
|
cppflags_force=-I ../include
|
||||||
cflags_force=-W `pkg-config --cflags gl`
|
cflags_force=-W `pkg-config --cflags gl`
|
||||||
cflags=-Wall -fPIC -g -O2 -pedantic
|
cflags=-Wall -fPIC -g -O2 -pedantic
|
||||||
dist=Makefile
|
dist=Makefile,common.h,gwidget.h
|
||||||
|
|
||||||
[libGToolkit]
|
[libGToolkit]
|
||||||
type=library
|
type=library
|
||||||
|
|
Loading…
Reference in New Issue
Block a user