Code cleanup

This commit is contained in:
Pierre Pronchery 2018-04-21 21:50:11 +02:00
parent e94f74a282
commit 5203dd4d43
4 changed files with 16 additions and 9 deletions

View File

@ -2,6 +2,7 @@ subdirs=gtkdoc
targets=gtkdoc/libDesktop.types,gtkdoc/tmpl.stamp,gtkdoc/sgml.stamp,gtkdoc/html.stamp,widget.1,widget.html,widget.xml
dist=Makefile,docbook.sh,gtkdoc.sh,manual.css.xml,widget.css.xml,widget.xml.in
#targets
[gtkdoc/libDesktop.types]
type=script
script=./gtkdoc.sh

View File

@ -10,11 +10,13 @@ ldflags_force=`pkg-config --libs libSystem gtk+-2.0`
#ldflags_force=`pkg-config --libs libSystem gtk+-3.0`
dist=Makefile
#targets
[libDesktop]
type=library
sources=about.c,accel.c,compat.c,help.c,menubar.c,message.c,mime.c,mimehandler.c,toolbar.c,widget.c
install=$(PREFIX)/lib
#sources
[help.c]
depends=../config.h

View File

@ -10,6 +10,7 @@ ldflags_force=`pkg-config --libs libSystem gtk+-2.0` $(OBJDIR)../src/libDesktop.
#ldflags_force=`pkg-config --libs libSystem gtk+-3.0` $(OBJDIR)../src/libDesktop.a
dist=Makefile,applications/Root.desktop,applications/Widget.desktop,fixme.sh,htmllint.sh,pkgconfig.sh,tests.sh,xmllint.sh
#targets
[fixme.log]
type=script
script=./fixme.sh
@ -24,17 +25,11 @@ depends=htmllint.sh
type=binary
sources=mime.c
[mime.c]
depends=$(OBJDIR)../src/libDesktop.a
[mimehandler]
type=binary
sources=mimehandler.c
depends=applications/Root.desktop,applications/Widget.desktop
[mimehandler.c]
depends=$(OBJDIR)../src/libDesktop.a
[tests.log]
type=script
script=./tests.sh
@ -44,10 +39,17 @@ depends=$(OBJDIR)mime$(EXEEXT),$(OBJDIR)mimehandler$(EXEEXT),pkgconfig.sh,tests.
type=binary
sources=widget.c
[widget.c]
depends=$(OBJDIR)../src/libDesktop.a
[xmllint.log]
type=script
script=./xmllint.sh
depends=xmllint.sh
#sources
[mime.c]
depends=$(OBJDIR)../src/libDesktop.a
[mimehandler.c]
depends=$(OBJDIR)../src/libDesktop.a
[widget.c]
depends=$(OBJDIR)../src/libDesktop.a

View File

@ -10,10 +10,12 @@ ldflags_force=`pkg-config --libs libSystem gtk+-2.0` -L $(OBJDIR)../src -lDeskto
#ldflags_force=`pkg-config --libs libSystem gtk+-3.0` -L $(OBJDIR)../src -lDesktop
dist=Makefile,subst.sh
#targets
[widget]
type=binary
sources=widget.c
install=$(BINDIR)
#sources
[widget.c]
depends=$(OBJDIR)../src/libDesktop.a