remove never working schema stuff from Makefile
This commit is contained in:
parent
89ead66d65
commit
b95b880030
1 changed files with 3 additions and 12 deletions
15
Makefile
15
Makefile
|
@ -1,9 +1,8 @@
|
|||
CC ?= gcc
|
||||
PKGCONFIG = $(shell which pkg-config)
|
||||
CFLAGS = $(shell $(PKGCONFIG) --cflags gtk+-3.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-app-1.0 libgphoto2) -Wl,--export-dynamic -rdynamic -g
|
||||
LIBS = $(shell $(PKGCONFIG) --libs gtk+-3.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-app-1.0 libgphoto2 gmodule-export-2.0)
|
||||
CFLAGS = $(shell $(PKGCONFIG) --cflags gtk+-3.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-app-1.0 libgphoto2 libcurl) -Wl,--export-dynamic -rdynamic -g
|
||||
LIBS = $(shell $(PKGCONFIG) --libs gtk+-3.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-app-1.0 libgphoto2 gmodule-export-2.0 libcurl)
|
||||
GLIB_COMPILE_RESOURCES = $(shell $(PKGCONFIG) --variable=glib_compile_resources gio-2.0)
|
||||
GLIB_COMPILE_SCHEMAS = $(shell $(PKGCONFIG) --variable=glib_compile_schemas gio-2.0)
|
||||
|
||||
SRC = photobooth.c photoboothwin.c focus.c
|
||||
BUILT_SRC = resources.c
|
||||
|
@ -12,24 +11,16 @@ OBJS = $(BUILT_SRC:.c=.o) $(SRC:.c=.o)
|
|||
|
||||
all: photobooth
|
||||
|
||||
org.schaffenburg.photobooth.gschema.valid: org.schaffenburg.photobooth.gschema.xml
|
||||
$(GLIB_COMPILE_SCHEMAS) --strict --dry-run --schema-file=$< && mkdir -p $(@D) && touch $@
|
||||
|
||||
gschemas.compiled: org.schaffenburg.photobooth.gschema.valid
|
||||
$(GLIB_COMPILE_SCHEMAS) .
|
||||
|
||||
resources.c: photobooth.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=. --generate-dependencies photobooth.gresource.xml)
|
||||
$(GLIB_COMPILE_RESOURCES) photobooth.gresource.xml --target=$@ --sourcedir=. --generate-source
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c -o $(@F) $(CFLAGS) $<
|
||||
|
||||
photobooth: $(OBJS) gschemas.compiled
|
||||
photobooth: $(OBJS)
|
||||
$(CC) -o $(@F) $(LIBS) $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -f org.schaffenburg.photobooth.gschema.valid
|
||||
rm -f gschemas.compiled
|
||||
rm -f $(BUILT_SRC)
|
||||
rm -f $(OBJS)
|
||||
rm -f photobooth
|
||||
|
|
Loading…
Add table
Reference in a new issue