diff options
author | Agney Lopes Roth Ferraz <agney@users.sourceforge.net> | 2005-06-13 18:34:20 -0300 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:31 -0500 |
commit | 61dfceab1e3e9d77aa2900a6e333961f89c4ef45 (patch) | |
tree | 673b0f2f59b4b9ed4c2595a5690aa63480190103 /Makefile | |
parent | 7d65a12d6431f72e601ea1d0c3ef5d09af8bfb96 (diff) | |
parent | a08438bda21b3e0d7db2db2360d040841970104d (diff) |
Import Debian changes 0.3.7pre-1
hardinfo (0.3.7pre-1) unstable; urgency=low
* New upstream release. (Closes: #280694, #300114, #233033)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..2168ea59 --- /dev/null +++ b/Makefile @@ -0,0 +1,53 @@ +TARGET = GTK2 +GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 +GTK_CFLAGS = -DXTHREADS -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include +PACKAGE = hardinfo-0.3.7pre +# ---------------------------------------------------------------------------- + +CC = gcc +CFLAGS = -Wall -g $(GTK_CFLAGS) -O6 + +# ---------------------------------------------------------------------------- + +OBJECTS = hardinfo.o scsi.o ide.o pci.o usb.o isapnp.o serial.o parport.o \ + computer.o x11.o intl.o about.o v4l.o status.o net.o stock.o \ + details.o modules.o + +all: $(OBJECTS) + $(CC) $(CFLAGS) -o hardinfo $(OBJECTS) $(GTK_LIBS) $(GTK_FLAGS) + +clean: + rm -rf *~ .xvpics pixmaps/.xvpics *.o hardinfo + +install: all + mkdir -p ${DESTDIR}/usr/bin/ + cp hardinfo ${DESTDIR}/usr/bin/hardinfo + mkdir -p ${DESTDIR}/usr/share/hardinfo/pixmaps + cp -rv pixmaps/*.png ${DESTDIR}/usr/share/hardinfo/pixmaps + cp -rv pixmaps/logo.xpm ${DESTDIR}/usr/share/hardinfo/pixmaps + mkdir -p ${DESTDIR}/usr/share/hardinfo/pixmaps/distro + cp -rv pixmaps/distro/*.png ${DESTDIR}/usr/share/hardinfo/pixmaps/distro + mkdir -p ${DESTDIR}/usr/share/hardinfo/lang + cp -rv lang/* ${DESTDIR}/usr/share/hardinfo/lang + chmod -R 755 ${DESTDIR}/usr/share/hardinfo + chmod -R -x ${DESTDIR}/usr/share/hardinfo + chmod 755 ${DESTDIR}/usr/share/hardinfo + chmod 755 ${DESTDIR}/usr/share/hardinfo/pixmaps + chmod 755 ${DESTDIR}/usr/share/hardinfo/lang + chmod 755 ${DESTDIR}/usr/share/hardinfo/pixmaps/distro + mkdir -p ${DESTDIR}/usr/share/applications + cp hardinfo.desktop ${DESTDIR}/usr/share/applications + +dist-clean: clean + rm -rf Makefile debian/hardinfo/ config.h + +package: dist-clean + @echo "Creating tar.gz..." + cd .. && tar czf $(PACKAGE).tar.gz $(PACKAGE)/* && cd $(PACKAGE) + @echo "Creating tar.bz2..." + cd .. && tar cjf $(PACKAGE).tar.bz2 $(PACKAGE)/* && cd $(PACKAGE) + +deb: dist-clean + @echo "Creating deb..." + dpkg-buildpackage -rfakeroot -k${USER} + |