121 Commits

Author SHA1 Message Date
Michael Stapelberg
21188de260 Makefile: correct dependencies to fix race condition
Before this commit, when building dunst in parallel, org.knopwob.dunst.service might get installed as an empty file. See https://bugs.debian.org/888760
2018-01-30 09:14:08 +02:00
Michael Stapelberg
ac6086198e
Makefile: correct dependencies to fix race condition
Before this commit, when building dunst in parallel, org.knopwob.dunst.service might get installed as an empty file. See https://bugs.debian.org/888760
2018-01-29 16:53:08 +01:00
Alexey Kovac
68466f73ed add PKG_CONFIG make variable 2018-01-25 21:28:24 -02:00
Benedikt Heine
370e6ede70 Build dunst also as a git submodule
Git submodules have the property to have .git symlinked into the main
.git folder. On a symlink, the traling dot of a wildcard doesn't work.
2018-01-16 15:03:55 +01:00
Nikos Tsipinakis
a4a38d4467 Start new release cycle
Switch default version string back to the `-non-git` prefix to indicate
an indev version.

Additionally fix the formatting of the 1.3 header in the changelog.
2018-01-05 21:05:53 +02:00
Nikos Tsipinakis
10ee1782d9 Dunst v1.3.0 2018-01-05 20:56:16 +02:00
Benedikt Heine
de09b5a87d Do not create directories separately 2017-12-26 03:31:06 +01:00
Benedikt Heine
573ea1de20 Use systemd as a soft dependency
Dunst does not neccessarily need systemd. Dunst gets started primarily
via DBus. The systemd service is useful on systemd init based systems,
but won't have any impact on non-systemd systems.

To make systemd a soft dependency is neccessary, as pkg-config now also
queries the systemd.pc file, which won't exist on non systemd systems.
2017-12-26 03:31:06 +01:00
Benedikt Heine
8f17d6026b Add configurable path variables for services
Setting PREFIX to a location different to /usr, the install routine
fails to install the systemd and dbus service files. These are
installed, but in the PREFIX directory and not /usr. DBus and systemd
usually only read their files from /usr/ and ignore files in /usr/local.

Now by default, we're asking pkg-config, where to install it. Mostly,
this will be /usr and this conflicts the FHS. But it's the user's intent
to install dunst and (possibly) override the package manager's files
belonging to dunst.

At the current point, even DBus ignores the PREFIX and installs its
systemd service file to the location specified by pkg-config.
2017-12-26 01:35:14 +01:00
Benedikt Heine
1d39aa348c Add valgrind to travis configuration and check for leaks 2017-12-19 11:37:28 +01:00
Benedikt Heine
b5a48ea135 Sync phony targets with .PHONY and organise in sections 2017-10-26 17:21:33 +02:00
Benedikt Heine
d07bdacab9 Introduce debug target 2017-10-26 17:11:05 +02:00
Benedikt Heine
bfc8b17c27 Reorganise CLFAGS/LDFLAGS handling 2017-10-22 04:11:34 +02:00
Benedikt Heine
e890052431 Restructure the Makefile (refactor) 2017-10-22 04:11:32 +02:00
Benedikt Heine
37d76ab0d1 Simplify dunstify flags 2017-10-22 04:10:20 +02:00
Benedikt Heine
20414cc3a3 Remove config.def.h and only use config.h 2017-10-07 18:22:07 +02:00
Benedikt Heine
8b102a4483 Remove systemd service on uninstall 2017-10-06 14:49:15 +02:00
Bernhard M. Wiedemann
5df95513ec Sort linker input file list
so that dunst binaries build in a reproducible way
in spite of indeterministic filesystem readdir order

See https://reproducible-builds.org/ for why this is good.
2017-09-12 21:26:30 +02:00
Benedikt Heine
855d4bb860 depend on gtk3 instead of gtk2 2017-07-13 15:01:52 +02:00
Nikos Tsipinakis
abc5436e0e Move systemd service file to the root directory
Since the systemd service is installed by default and officially
supported there is no reason for it to be in the contrib directory.
2017-07-08 12:33:04 +03:00
Hugo Osvaldo Barrera
94da3eecc5 Install the systemd user service file by default 2017-05-19 13:32:30 -03:00
Nikos Tsipinakis
ebea092ddd Move x.{c,h} to a different subdirectory
x.c has grown into an unmaintainable blob. Moving it in its own
subdirectory is the first step to splitting it into submodules each of
which will have a well defined job so that a lot of the code can be
abstracted to improve readability and make it much easier to maintain.

This process will be done one small part at a time only when we need to
change significantly change a part of the file, there is no need to
break what already works.
2017-04-02 18:27:12 +03:00
Daniel Lublin
2cf42f3299 Makefile: just be verbose
Show what is happening during build etc, the way most other make-based
projects do.

There is thus no need for the options target. Additionally, this target
caused unnecessary rebuilds of ./dunst each and every time, even on
`make install`.
2017-02-15 13:31:51 +01:00
Nikos Tsipinakis
86c917fc95 Implement raw icon support for dunstify
Add the ability to send raw icons with dunstify -I <file path>.
2017-01-20 19:26:16 +02:00
Sascha kruse
cfef422515 run tests on 'make test' 2017-01-13 17:37:01 +01:00
Nikos Tsipinakis
ae87efc0a2 Fix a few minor issues in the makefile & remove debug target
* Fix a bug that would cause distclean to fail if config.h didn't exist
* Make sure the options target is run when running make dunst
* Remove debug target as the optimization override it was doing was only
  applied in the linking phase. Optimizations are applied during
  compilation, not linking, and I don't see any easy way to fix that so
  let's drop the target entirely.
2017-01-04 11:05:10 +02:00
Nikos Tsipinakis
86fbde2de1 Implement distclean target
distclean target should restore the directory tree to the state it
originally before make was invoked. In our case it means calling the
clean target to remove the compiled blobs and removing the
auto-generated config.h.
2017-01-01 17:08:10 +02:00
Eizen
f32659adb7 Add systemd service unit to contrib
Apply sed to reflect prefix but don't install it and clean service file in makefile. Add service file to gitignore
2016-12-21 01:57:16 -03:00
Nikos Tsipinakis
e3cbe3883a The manpage should be built to the docs directory
In the spirit of keeping everything organised, the compiled docs should
be in the same directory as the files used to compile them.
2016-12-11 13:48:12 +02:00
Eizen
dfdc082687 Change README
Move README to docs/dunst.pod to be used as man page. Write a README with building instructions and dependencies. Remove INSTALL as it's no longer necessary.
2016-11-19 20:11:21 -03:00
Nikos Tsipinakis
d441e950d8 Implement test target and add the first test
make test will now compile the tests to test/test.
The first test, testing string_replace_char from utils.c, was added.
2016-11-19 12:26:00 +02:00
Nikos Tsipinakis
e0a8b233c2 Move the main function to main.c
Move the main function to main.c in the git root to allow for
alternative main functions to be linked in its place. Specifically this
will be used to link the test runner main to run tests.
2016-11-19 12:15:39 +02:00
Nikos Tsipinakis
32fb32f96f Split clean and install targets to *-doc *-dunst
This allows better control over when to clean and install, and is more
easily expandable in the long run.
2016-11-19 12:08:27 +02:00
Nikos Tsipinakis
2df2e7d06c Move dunst source files to src/ 2016-11-19 11:54:03 +02:00
Ilya Tumaykin
be72e22c38 Fix: Respect CFLAGS when building dunstify
https://github.com/knopwob/dunst/issues/267
2016-10-29 02:51:49 -03:00
Josh Brown
d3ae6c5951 Remove trailing spaces from all other files 2014-08-03 15:47:59 +00:00
Sascha Kruse
f48d512223 Abort build if config.h needs to be updated
close #179

Thanks progandy
2014-06-16 22:00:42 +02:00
Sascha Kruse
98ac8a649e Don't build dunstify on 'make' or 'make all' 2014-03-08 11:57:23 +01:00
Sascha Kruse
7c4d0bce58 add option for verbose make output 2013-04-15 18:25:05 +02:00
Sascha Kruse
b26bab5a3a more dunstify integration into Makefile 2013-02-25 20:39:58 +01:00
Sascha Kruse
5827411c64 dunstify 2013-02-23 04:20:29 +00:00
Sascha Kruse
f88cc4e831 renamed draw.{c,h} x.{c,h} 2013-02-21 20:03:00 +00:00
Sascha Kruse
4e92d61804 notification.{c,h} 2013-02-21 18:02:20 +00:00
Sascha Kruse
e07744fd49 move context_menu related stuff into menu.{c,h} 2013-02-21 03:08:04 +00:00
Sascha Kruse
a587fea56f moved rules related stuff to rules.{c,h} 2013-02-21 01:37:57 +00:00
Sascha Kruse
56716ec948 options.{c,h} -> option_parser.{c,h} 2013-02-21 01:27:32 +00:00
Sascha Kruse
be5940bc74 settings.{c,h}
Put all global variables that store user settings into
a struct to keep the namespace clean. Move loading of
settings into own file so that only the namespace of
settings.c gets polluted with the stuff from config.h
2013-02-21 01:22:46 +00:00
Sascha Kruse
0dc127715f renamed dunst_dbus.* -> dbus.* 2013-02-20 08:52:54 +00:00
Sascha Kruse
74bae9ee0b get rid of str_array 2013-02-17 03:38:48 +01:00
Sascha Kruse
b5f4feee27 Makefile: add debug target 2012-12-19 11:58:21 +01:00