diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2012-09-01 02:31:13 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2012-09-01 02:31:13 +0000 |
commit | b2b1e1aa5fe437877a7ec9f7d861e215c956ebb9 (patch) | |
tree | e79563b34728d0e475dbf5d73da4e5cd1a278de6 /udev-lfs/makefile-incl.gir | |
parent | 166497f2c69435a594f9992ad55857112eb44127 (diff) |
Move directory to make build easier
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9973 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'udev-lfs/makefile-incl.gir')
-rw-r--r-- | udev-lfs/makefile-incl.gir | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/udev-lfs/makefile-incl.gir b/udev-lfs/makefile-incl.gir new file mode 100644 index 000000000..30641ee12 --- /dev/null +++ b/udev-lfs/makefile-incl.gir @@ -0,0 +1,51 @@ +# Custom systemd Makefile include that builds/installs gir only for LFS + +# vim: tabstop=3 + +G_IR_INCLUDES = \ + src/gudev/gudev.h \ + src/gudev/gudevtypes.h \ + src/gudev/gudevenums.h \ + src/gudev/gudevenumtypes.h \ + src/gudev/gudevclient.h \ + src/gudev/gudevdevice.h \ + src/gudev/gudevenumerator.h \ + src/gudev/gudevclient.c \ + src/gudev/gudevdevice.c \ + src/gudev/gudevenumerator.c + +build/GUdev-1.0.gir: gudev + @echo G-IR-SCANNER $@ + $(VB)LD_LIBRARY_PATH=./build g-ir-scanner \ + $(G_IR_INCLUDES) \ + -D_GUDEV_COMPILATION \ + -D_GUDEV_WORK_AROUND_DEV_T_BUG \ + -I src -I src/gudev \ + -L./build -lgudev-1.0 -ludev \ + --quiet \ + --warn-all \ + --no-libtool \ + --include=GObject-2.0 \ + --pkg-export=gudev-1.0 \ + --c-include=gudev/gudev.h \ + --library=gudev-1.0 \ + --namespace=GUdev \ + --nsversion=1.0 \ + --output=$@ + +build/GUdev-1.0.typelib: build/GUdev-1.0.gir + @echo G-IR-COMPILER $@ + $(VB)LIBRARY_PATH=./build g-ir-compiler $< > $@ + +gir-data: build/GUdev-1.0.gir build/GUdev-1.0.typelib + +install-gir-data: gir-data + @mkdir -pv $(DESTDIR)/usr/lib/girepository-1.0 \ + $(DESTDIR)/usr/share/gir-1.0 + + @cp -v build/GUdev-1.0.typelib $(DESTDIR)/usr/lib/girepository-1.0 + @cp -v build/GUdev-1.0.gir $(DESTDIR)/usr/share/gir-1.0 + +clean-gir-data: + rm -f build/GUdev-1.0.typelib + rm -f build/GUdev-1.0.gir |